<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录页面</title>
    <link rel="stylesheet" href="css/login.css">
</head>
<body>
<div class="login-container">
        <%
            if (session.getAttribute("user_msg") != null)
            {
        %>
    <div class="error-message"><%= session.getAttribute("user_msg") %></div>
        <%
            }
        %>
<h1> 机票预定系统 </h1>
<form action="login" method="post">
    账号：<input type="text" name="id" required><br>
    密码：<input type="password" name="password" required><br>
    管理员<input type="radio" id="option1" name="group1" value="2" required>
    普通用户<input type="radio" id="option2" name="group1" value="1"><br>
    <input type="submit">
</form>
    <a href="register.jsp" class="register-link">没有账号，去注册</a>
</div>
</body>
</html>